Release 10.1A: OpenEdge Reporting:
Report Builder Deployment
Accessing initialization (.INI) files
To access initialization file information from the Progress 4GL, you can use the
_getini.pprocedure. Because the status file created by Report Engine has the same format as an initialization file, you can use the_getini.pprocedure to read the information out of the status file. Use the following command in the Progress 4GL application:
The following list describes the arguments for the
_getini.pprocedure:
section-nameThe name of the section in the initialization file. In the Report Engine status file, this is also the name of the report being run.
entry-nameThe name of the entry that you want. For example,
RO-ERROR-CODEorRO-ERROR-MESSAGEin the report status file.
entry-defaultThe default value to be used if the entry is not found in the specified section.
entry-valueThe character variable that will display the value of the specified entry.
ini-pathnameThe full pathname to the initialization file being used. For example, with the Report Engine table interface, this is the file specified by the Report Status File (-
rbstatfile) parameter.
successThe logical variable that gets assigned a TRUE value (yes) if the
_getini.pprocedure returns a string of zero of more characters and a FALSE value if no string is returned. Currently, this parameter always gets assigned a TRUE value (yes).The
progini.pprocedure is an example of how to run the_getini.pprocedure:
The commented numbers correspond to the following step-by-step descriptions:
- Define the variables that will pass the character value and logical value for the
_getini.pprocedure.- Call
aderb/_getini.pand specify all six arguments, including the variables to pass the result and return values.- Test the value in the
successvariable, then display the appropriate information.- Currently, the
ELSEcode will never be executed. The test shown will never fail—successalways has the valuetrue. This is an artifact of how the underlying MS-Windows function behaves.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |